<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/3.5.22/vue.global.js"></script>
</head>
<body>
    <div id="apps">
        <div>{{mes}}</div>
        <button @click="change">按（正确绑定）</button>
        <p :title="msg">安安</p>
        <p v-bind:title="msg">安安</p>
        <button @click="change">按（修复后）</button>
    </div>

    <script>
        const app = Vue.createApp({
            data() {
                return {
                    mes: "晚",
                    msg: "安"
                }
            },
            methods: {
                change() {
                    console.log("这是自己写的方法")
                    this.mes = this.mes === "晚"},
                ex(){
                    console.log("111")
                }
            }
        })

        app.mount("#apps")
    </script>
</body>
</html>